﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Guru.Data;
using Telerik.Web.UI;

public partial class HK_Diagram : HSMPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.uxDiagrams.RoomList = this.GetRooms();
            this.uxDiagrams.DataBind();
        }
    }
   
    protected void uxReload_Click(object sender, EventArgs e)
    {
        this.uxDiagrams.RoomList = this.GetRooms();
        this.uxDiagrams.DataBind();
    }  
    protected void DoContextMenuClick(object sender, RadMenuEventArgs e)
    {
       
    }
    protected DataTable GetRooms()
    {
        GuruParameterCollection parameters = new GuruParameterCollection();
        parameters.AddUserLoggedParams();
        parameters.Add("@ViewDate", HSMSessionManager.HotelFilterOptions.ViewDate, DbType.Date);
        DataTable rooms = HSMCommon.HSMBusiness.GetDataTable("spa_HSM_Room_GetFromDeskDiagram", parameters);
        return rooms;
    }

}
